package cn.edu.scau.cmi.linpeiwei.client;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class SimpleFactoryMethodClient extends Application {
	public static void main(String[] args) {
		Application.launch(args);
	}

	@Override
	public void start(Stage primaryStage){
		try {
        	Parent root = FXMLLoader.load(getClass()
                    .getResource("/cn/edu/scau/cmi/linpeiwei/view/SimpleFactoryMethod.fxml"));

            primaryStage.setTitle("简单工厂");
            primaryStage.setScene(new Scene(root));
            primaryStage.show();


        } catch(Exception e) {
            e.printStackTrace();
        }		
	}
}
